Repository navigation
fix(editor): keep the Edit clip menu above the timeline and stop tooltips sticking after a click - #1036
Conversation
The clip list sat inside the stage, which clips what overflows it, so the rows past the stage's edge were under the timeline and no click reached them. It now opens through the shared Popover, in a portal like the timeline's menus. Escape and the outside click come with it, and a picked clip's dialog keeps the focus.
Radix opened a tooltip on every focus, and the focus also comes back to a clicked control without a click: the window is switched back to, a dialog returns it to its opener. That tooltip then stayed open until a blur, over the panel and the next rail buttons, and closed the one under the pointer. Only a :focus-visible focus opens it now. The Add audio button also shows its key chip, read from the live binding.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (11)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe changes update tooltip focus behavior, replace the clip picker menu with a popover, and add the configured Add Audio shortcut to its tooltip. Tests cover keyboard and mouse focus, clip selection and dismissal, and shortcut display. ChangesEditor Controls
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant User
participant FloatingInspector
participant Popover
participant onEditClip
User->>FloatingInspector: Opens picker when multiple clips exist
FloatingInspector->>Popover: Opens controlled picker
User->>Popover: Selects a clip row
Popover->>FloatingInspector: Closes picker
FloatingInspector->>onEditClip: Passes selected clip
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change keeps the Edit clip menu above the timeline and stops tooltips from sticking after a mouse click. No concrete merge-blocking risk was identified. Real-pointer and Electron testing remain unperformed. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Out of Scope Changes checkExplanation The TooltipTrigger focus behavior changes and the Add audio shortcut chip do not implement or support
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Edit clip menu (#1006)
Popover(a portal), like the timeline's menus. Escape and an outside click close it.Tooltips (#1016)
Tooltip, and hover opens both. The stuck tooltip came from focus: Radix opens a tooltip on any focus, and focus comes back to a clicked control when the window is reactivated or a dialog returns it to its opener. That tooltip stayed until the next blur, over the controls beside it.TooltipTriggernow opens on focus only when the trigger matches:focus-visible, i.e. keyboard focus, astooltips.mdalready says.addAudiobinding.Related issue
Closes #1006
Part of #1016. Left open:
title(ChoiceRow, f7b96fc). The OS draws it: nothing on keyboard focus, and nothing on macOS while the app is inactive;Type of change
Release impact
Desktop impact
Testing
main.focus(), which no longer counts as keyboard focus. They send a Tab first.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes